<?php $this->load('header')?>

<?php $this->showTabs() ?>

<div class="main">

<form name="save" method="post" action="<?php echo URL('link.add')?>" onsubmit="return save_link()">
	<input type="hidden" name="id" value="<?php echo $result['id']?>" />
	<table width="100%" cellspacing="0" class="sub">
		<tr>
			<td colspan="2"><div id="tip"></div></td>
		</tr>
		<tr>
			<td width="80" align="right">名称：</td>
			<td><input type="text" name="name" class="input" size="20" value="<?php echo $result['name']?>" /> 
			<select name="cateid"><?php echo cate_options('link',$result['cateid'])?></select>
			</td>
		</tr>
		<tr>
			<td align="right">URL：</td>
			<td><input type="text" name="url" class="input" size="50" value="<?php echo $result['url']?>" /> <span>别忘了加上http://</span></td>
		</tr>
		<tr>
			<td align="right">LOGO：</td>
			<td><input type="text" name="logo" class="input" size="50" value="<?php echo $result['logo']?>" /> <span>别忘了加上http://</span></td>
		</tr>
		<tr>
			<td align="right">描述：</td>
			<td><textarea name="description" rows="5" cols="50"><?php echo $result['description']?></textarea>
			</td>
		</tr>
		<tr>
			<td align="right">其它：</td>
			<td>
			<input type="radio" name="status" id="status_1" value="1" class="checkbox" <?php if ($result['status']) {echo'checked';} ?> /><label for="status_1">通过</label>
			<input type="radio" name="status" id="status_0" value="0" class="checkbox" <?php if (!$result['status']) {echo'checked';} ?> /><label for="status_0">未审核</label> 
			</td>
		</tr>
		<tr class="bg2"><td></td><td><input type="submit" class="button" value="保存链接" /> <input type="button" class="button" onclick="history.back();" value="取消返回" /></td></tr>
	</table>
	</form>
	
</div>

<?php $this->load('footer')?>